package com.gadgets.framework.common.constant;

/**
 * @author UncleXiu
 * @version V1.0.0
 * @data 2020-09-13
 * 
 */
public enum ExceptionEnum {
    /**
     * 系统提醒
     */
    NOTICE(GadgetsConstant.NUMBER_CONSTANT.NUMBER_0),
    /**
     * 业务校验提醒
     */
    BUSI_CHECK(GadgetsConstant.NUMBER_CONSTANT.NUMBER_1),
    /**
     * 业务执行警告
     */
    BUSI_WARN(GadgetsConstant.NUMBER_CONSTANT.NUMBER_2),
    /**
     * 业务执行错误
     */
    BUSI_ERROR(GadgetsConstant.NUMBER_CONSTANT.NUMBER_3),
    /**
     * 系统警告
     */
    SYSTEM_WARN(GadgetsConstant.NUMBER_CONSTANT.NUMBER_4),
    /**
     * 系统错误
     */
    SYSTEM_ERROR(GadgetsConstant.NUMBER_CONSTANT.NUMBER_5)
    ;

    ExceptionEnum(int errorLevel) {
        this.errorLevel = errorLevel;
    }

    private int errorLevel;

    public int getErrorLevel() {
        return errorLevel;
    }

}
